<?php
namespace app\index\Validate;
use think\Validate;

class Login extends Validate{
    protected $rule=[
        'user_name'=>'require|min:3',
        'user_password'=>'require'
    ];
    protected $message=[
        'user_name.require'=>'请填写有用户名',
        'user_name.min'=>'用户名不能小于3位',
        'user_password.require'=>'请填写密码'
    ];
}